<?php
	if(isset($_SESSION['login'])){
		$mylogin_s = @$_SESSION['login'];
		if (!is_null($mylogin_s)) {
			$mylogin = unserialize($mylogin_s);
			$USERID = $mylogin->userid ;
		}
	}else{
		$host  = $_SERVER['HTTP_HOST'];
		$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
		redirect("http://$host$uri/blank.php");
	}
?>